package org.shj.pattern.state;

public class StateB extends State{
	

	@Override
	public void handle(Context ctx) {
		if("B".equalsIgnoreCase(ctx.getCurStatus())){
			//do something when Status is B.
			System.out.println("Current Status is B.");
		}else{
//			ctx.setStatus(new StatusC()); //set the next status of StatusB
//			ctx.request();
		}
	}

	
}
